<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class DataController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
	}
    //
    public function index()
    {
        return view('admin.data-1');
    }

    public function data()
    {
        return view('admin.data-2');
    }

    public function reserve(Request $request)
    {
        $form = $request->request->all();
        
        return redirect('data/1');
    }
}
